import { Form, Input, InputNumber, Tabs } from "antd";
import { useEffect, useState } from "react";
import { message } from "antd";
import WayBillMgr from './command/WayBillForm'
import DeviceForm from "./DeviceForm";

const CommandFormMgr = ({ record, formRef }) => {
  const onChange = key => {
    console.log(key);
  };
  const tabs = [
    {
      label: '电子运单',
      key: '电子运单',
      children: <WayBillMgr record={record}/>
    },
    {
      label: '上报报警',
      key: '上报报警',
      children: <DeviceForm/>
    },
    {
      label: '拍照配置',
      key: '拍照配置',
      children: <DeviceForm/>
    },
    {
      label: '路线配置',
      key: '路线配置',
      children: <DeviceForm/>
    },
    {
      label: '上报频率配置',
      key: '上报频率配置',
      children: <DeviceForm/>
    },
  ];
  return (

    <Tabs
      onChange={onChange}
      type="card"
      items={tabs}
    />
  );

}

export default CommandFormMgr;